<<<<<<< HEAD
import Vue from "vue";
import VueRouter from "vue-router";
import Course from "../views/home/Course.vue";
import Layout from "../layout/Layout.vue"

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    redirect: "/layout/course",
  },
  {
    path: "/layout",
    name: "Layout",
    component: Layout,
    children: [
      {
        path: "course", //课程管理
        name: "Course",
        component: Course,
      },
    ],
  },
];

const router = new VueRouter({
  routes,
});

export default router;
=======
import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/home/Teacher.vue'
import layout from '../layout/Layout.vue'
Vue.use(VueRouter)

const routes = [
  {
   path:'/',
   redirect:'/layout/home'
  },
  {
    path:'/layout',//布局路由
    name:'layout',
    component:layout,
    children:[
      {
        path: 'home',
        name: 'home',
        component: HomeView
      },
      {
        path: 'about',
        name: 'about',   
        component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
      }
    ]
  },
  
]

const router = new VueRouter({
  routes
})

export default router
>>>>>>> 29d4d2179ab11ecfcd5b40aa6c0755da214ad792
